/* eslint-disable import/prefer-default-export */
import request from '@/utils/request';

// 已维护获取下载模板信息：fileId fileName
export async function getDownloadInfo(params) {
  return request(`/csApi/wageFile/downloadExist`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 待发放获取下载模板信息：fileId fileName
export async function getDownloadInfoSend(params) {
  return request(`/csApi/wageFile/downloadWage`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 待报税获取下载模板信息：fileId fileName
export async function getDownloadInfoTax(params) {
  return request(`/csApi/wageFile/downloadTax`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 获取上传进度数据
export async function getUploadProgress(params) {
  return request(`/csApi/batchTask/getBatTaskInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function uploadFileImport(params) {
  return request(`/csApi/wageFile/uploadExist`, {
    method: 'POST',
    body: params,
  });
}
export async function uploadFileSend(params) {
  return request(`/csApi/wageFile/uploadStayOut`, {
    method: 'POST',
    body: params,
  });
}
export async function uploadFileTax(params) {
  return request(`/csApi/wageFile/uploadTax`, {
    method: 'POST',
    body: params,
  });
}
